
import { createDecorator } from "../core/instantiation";
import { IStateService } from "./stateService";

// const DEFAULT_BG_LIGHT = '#FFFFFF';
const DEFAULT_BG_DARK = '#1E1E1E';
// const DEFAULT_BG_HC_BLACK = '#000000';

// const THEME_STORAGE_KEY = 'theme';
const THEME_BG_STORAGE_KEY = 'themeBackground';

export const IThemeMainService = createDecorator<IThemeMainService>('themeMainService');

export interface IThemeMainService {

	getBackgroundColor(): string;
}

export class ThemeMainService implements IThemeMainService {

	constructor(@IStateService private stateService: IStateService) {}

	getBackgroundColor(): string {
		this.stateService.setItem(THEME_BG_STORAGE_KEY, DEFAULT_BG_DARK)

		const background = '#171717';
		return background;
	}
}
